<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
    <p class='demo'>hello JavaScript</p>
    <script src="./Tools.js"></script>
    <script>
        // const p = document.getElementsByClassName("demo")[0]
        const p = "<p class='demo'>hello JavaScript</p>"


        console.log(Tools.getText(p));
    </script>
</body>
</html>